var a = 3;
var b = 8;
var h = 13;

console.log(((a + b) / 2) * h);